import React from "react";
import PropTypes from "prop-types";
import "../CSS/Header.css";

function Header({ title }) {
    return (
        <div className="header-wrapper">
            <h1>{title}</h1>
        </div>
    );
}

Header.propTypes = {
    title: PropTypes.string,
};
Header.defaultProps = {
    title: "无对应的博客内容",
};

export default Header;
